/**
 * Created by Administrator on 2016/4/14.
 */
(function (window,document) {
    var w = window,
        doc = document;
    var Kodo = function (selector) {
        return new Kodo.prototype.init(selector);
    }
    Kodo.prototype = {
        constructor : Kodo, //对象的constructor属性返回创建该对象的函数的引用。
        length : 0,
        splice : [].splice, //使对象变成类数组
        selector : '',
        init : function (selector) {
            //dom选择的一些判断
        }
    }
    Kodo.prototype.init.prototype = Kodo.prototype;

    Kodo.ajax = function () {   //直接挂载方法，可K.ajax调用
        console.log(this);
    }

    window.K = Kodo;
})(window,document);